#!/bin/sh
# copyhome:  copies the selected file(s) to home directory
# (if able)

for arg 
do
   if [ -f /nyquist/Music/"$arg" ];    then
      MSG="File: '$arg' already exists in directory. Overwrite?"
      if    
         gdialog --title "Overwrite?" --defaultno --yesno "$MSG" 200 100 
      
      then
         mv "$arg" /nyquist/Music/"$arg"
      fi
   else
     mv "$arg" /nyquist/Music/"$arg"
   fi

done